<!--
 * @Author: yhy
 * @Date: 2022-03-15 09:50:05
 * @LastEditTime: 2022-03-16 15:50:38
 * @LastEditors: yhy
 * @Description:
-->
<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script>
import { getAllChannelsApis } from '@/api'
export default {
  async created () {
    // try + catch 用来捕获 await 同步代码错误
    try {
      const res = await getAllChannelsApis()
      console.log(res)
    } catch (err) {
      console.error(err)
    }
  }
}
</script>

<style>
</style>
